<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd"
        >
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户注册</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="layui/css/layui.css"  media="all">
  <!--  <link rel="stylesheet" href="classpath:../static/layui/css/modules/code.css" media="all">
    <link rel="stylesheet" href="classpath:../static/layui/css/modules/laydate/default/laydate.css"  media="all">

    <link rel="stylesheet" href="../static/layui/css/modules/layer/default/layer.css"  media="all">
    <link rel="stylesheet" href="../static/layui/css/layui.css"  media="all">
-->
    <style>
        *{

           margin: 5px;
        }
        .layui-input{
            height: 31px;width: 202px;
        }
        .layui-form{

            margin:auto;
        }
        body{
            width: 456px;
            height: 251px;
            padding-top: 215px;
            margin-left: 496px;

        }

    </style>
</head>
<body background="layui/image/login.jpg" style=" background-repeat:no-repeat ;background-size:100% 100%;  background-attachment: fixed;" >
<div class="modal">
<form class="layui-form" method="post" action="/doRegister">
    <div class="layui-form-item">
        <label class="layui-form-label">账号</label>
        <div class="layui-input-block">
            <input type="text" name="account" required lay-verify="required" placeholder="请输入账号" autocomplete="off" class="layui-input">            </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">密码</label>
        <div class="layui-input-inline">
            <input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-mid layui-word-aux">&nbsp;&nbsp;请输入6-15位</div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="formDemo">注册</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>

</form>

<a href="login"><button style="  width: 498px;" type="button" class="layui-btn layui-btn-fluid">已有账号?去登录</button></a>
</div>
<script>
    //Demo
    layui.use('form', function(){
        var form = layui.form;

        //监听提交
        form.on('submit(formDemo)', function(data){
            layer.msg(JSON.stringify(data.field));
            return false;
        });
    });
</script>
</body>
</html>